<#import "/spring.ftl" as spring />
<#include "/includes/header.ftl">

<form name="create_account" action='<@spring.url "/register.jsp"/>' method="post" onsubmit="return check_form(create_account);">

  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tbody>
      <tr>
        <td>
          <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tbody>
              <tr>
                <td class="pageHeading">注册</td>
                <td class="pageHeading" align="right">&nbsp;</td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td class="smallText">
          <br />
          <font color="#ff0000"><small><b>已注册:</b></small></font>
          如果你已注册,请<a href='<@spring.url "/login.jsp"/>'><u>登录</u></a>.
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>
          <table border="0" cellpadding="2" cellspacing="0" width="100%">
            <tbody>
              <tr>
                <td class="main">
                  <b>注册</b>
                </td>
                <td class="inputRequirement" align="right">*必填</td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      <tr>
        <td>
          <table class="infoBox" border="0" cellpadding="2" cellspacing="1" width="100%">
            <tbody>
              <tr class="infoBoxContents">
                <td>
                  <table border="0" cellpadding="2" cellspacing="2">
                    <tbody>
                      <tr>
                        <td class="main">电邮地址:</td>
                        <td class="main">
                          <@spring.bind "command.emailAddr" />
                          <INPUT type="text" name="${spring.status.expression}" value='${spring.status.value?default("demo@ungoo.com")}' size="32" onBlur=alert("我失去了输入焦点！") />&nbsp;<SPAN class=inputRequirement>*</SPAN>
                          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
                        </td>
                      </tr>
                      <tr>
                        <td class="main">密码:</td>
                        <td class="main">
                          <@spring.bind "command.password" />
                          <INPUT type="password" maxlength="40" name="${spring.status.expression}" value='${spring.status.value?default("abc123")}' size="32" />&nbsp;<SPAN class=inputRequirement>*</SPAN>
                          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
                        </td>
                      </tr>
                      <tr>
                        <td class="main">确认密码:</td>
                        <td class="main">
                          <@spring.bind "command.confirmPassword" />
                          <INPUT type="password" maxlength="40" name="${spring.status.expression}" value='${spring.status.value?default("abc123")}' size="32" />&nbsp;<SPAN class=inputRequirement>*</SPAN>
                          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
                        </td>
                      </tr>
                      <tr>
                        <td class="main">昵称:</td>
                        <td class="main">
                          <@spring.bind "command.nickName" />
                          <INPUT type="text" name="${spring.status.expression}" value='${spring.status.value?default("Conan")}' size="32" />&nbsp;<SPAN class=inputRequirement>*</SPAN>
                          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
                        </td>
                      </tr>
                      <tr>
                        <td class="main">名:</td>
                        <td class="main">
                          <@spring.bind "command.firstName" />
                          <INPUT type="text" name="${spring.status.expression}" value='${spring.status.value?default("Conan")}' size="32" />&nbsp;<SPAN class=inputRequirement>*</SPAN>
                          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
                        </td>
                      </tr>
                      <tr>
                        <td class="main">姓:</td>
                        <td class="main">
                          <@spring.bind "command.lastName" />
                          <INPUT type="text" name="${spring.status.expression}" value='${spring.status.value?default("Conan")}' size="32" />&nbsp;<SPAN class=inputRequirement>*</SPAN>
                          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>

      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>
          <table class="infoBox" border="0" cellpadding="2" cellspacing="1" width="100%">
            <tbody>
              <tr class="infoBoxContents">
                <td>
                  <table border="0" cellpadding="2" cellspacing="0" width="100%">
                    <tbody>
                      <tr>
                        <td width="10">&nbsp;</td>
                        <td>
                          <input  alt="Continue" title=" Continue " border="0" type="submit" name="submit" value="注册" />
                        </td>
                        <td width="10">&nbsp;</td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>
</form>

<#include "/includes/footer.ftl">
